package id.mankel.commons.vo;

import lombok.Data;

/**
 * @author Mankel
 */
@Data
public class JsonResponse<T> {

    private int code;
    private String message;
    private T data;

    public JsonResponse(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public JsonResponse(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
